<?php

namespace app\admin\model;

use think\Model;

class Node extends Model
{
    public static function allNode($nid)
    {
        $node = [];
        foreach ($nid as $val){
            $result = parent::get($val)->getData()['name'];
            $node[$val] = $result;
        }
        return $node;
    }
}
